﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Assess.aspx.cs" Inherits="Taxes.Caculate.Assess" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="assess.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/swfupload/swfuploadevent.js"></script>
    <script type="text/javascript" src="../Scripts/swfupload/InitSwfUpload.js"></script>
    <script type="text/javascript" src="../Scripts/swfupload/Simple.js"></script>
    <script type="text/javascript" src="../Scripts/JSTrim.js"></script>
    <script type="text/javascript">
        var upload = function (ss) {
            Ext.net.DirectMethods.UploadFile();
        }
        //面积
        var renderSize = function (value, p, record) {
            return value + "平方米";
        }
        var renderType = function (value, p, record) {
            if (value == 1)
                return "自用";
            else if (value == 0)
                return "租用";
            return "";
        }
        var renderFloor = function (value, p, record) {
            return value + "层";
        }

        var addFloorEvent = function (store, record, rowIndex) {
            floor.show();
        }


        var floorBtnClick = function () {
            var urls = "";
            for (var i = 0; i < storeFloor_pic.getCount(); i++) {
                urls += storeFloor_pic.getAt(i).get('FilePath') + ","
            }

            imageUrlHidden.setValue(urls);
        }
        //        FilePath: "/UpLoadFiles/" + storeFiles.getAt(i).get('FilePath')
        var addFloorPic = function () {
            windowAddPic.hide();
            var TopicRecord = Ext.data.Record.create([
        { name: 'FileName', type: 'string' },
        { name: 'FilePath', type: 'string' }
    ]);

            for (var i = 0; i < storeFiles.getCount(); i++) {
                var myNewRecord = new TopicRecord({
                    FileName: storeFiles.getAt(i).get('FileName'),
                    FilePath: "/UpLoadFiles/" + storeFiles.getAt(i).get('FilePath')
                });
                storeFloor_pic.add(myNewRecord);
            }
        }
        var floor_command = function (cmd, record, rowIndex) {
            if (cmd == "delete") {
                var floor_carea = parseFloat(record.data.floor_carea);
                var total_carea = parseFloat(tfTotalMianJi.getValue());
                tfTotalMianJi.setValue("" + (total_carea - floor_carea));
                storeFloor.remove(record);
            }
        }
        var btnSubmitClick = function () {
            var zhandimianji = tfZhanDiMianji.getValue();
            Ext.net.DirectMethods.RevenueSubmit(zhandimianji,
            {
                success: function (result) {
                    for (var i = 0; i < storeFloor.getCount(); i++) {
                        var floorNumber = storeFloor.getAt(i).get("floor_num");
                        var floorUse = storeFloor.getAt(i).get("floor_use");
                        var floorOriginal = storeFloor.getAt(i).get("floor_original");
                        var floorArea = storeFloor.getAt(i).get("floor_area");
                        var hasLift = storeFloor.getAt(i).get("floor_elevator");
                        var totalArea = storeFloor.getAt(i).get("floor_carea");
                        var picUrls = storeFloor.getAt(i).get("uriFloorImage");
                        Ext.net.DirectMethods.FloorSubmit(result, floorNumber, floorUse, floorOriginal, floorArea, hasLift, totalArea, picUrls);
                    }
                    Ext.MessageBox.alert("提示", "提交成功!");
                }
            });

        }
    </script>
</head>
<body>
    <form runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
        <Listeners>
            <%--此处调用的方法按照SWFUpload官方的示例实在window.onload事件中处理，为了适应Ext.NET，不得不这么做，你懂得--%>
            <DocumentReady Single="true" Handler="return InitSwf('img');" />
        </Listeners>
    </ext:ResourceManager>
    <div>
        <ext:FormPanel runat="server" Header="true" Border="false" Title="基本信息" AutoWidth="true"
            Layout="ColumnLayout" AnchorHorizontal="100%" BodyStyle="height:75px;">
            <Items>
                <ext:Panel Border="false" Header="false" runat="server" Padding="8" BoxMaxHeight="75"
                    Layout="Form" ColumnWidth=".33">
                    <Defaults>
                        <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
                        <ext:Parameter Name="MsgTarget" Value="side" />
                    </Defaults>
                    <Items>
                        <ext:TextField runat="server" LabelWidth="100" AllowBlank="false" AnchorHorizontal="92%"
                            MaxLengthText="输入太长了" MaxLength="20" ID="tfComputorCode" FieldLabel="税务登记代码<font color='red'>*</font>">
                        </ext:TextField>
                        <ext:ComboBox runat="server" ID="cbIndustryTop" Editable="false" TypeAhead="true"
                            Mode="Local" ForceSelection="true" TriggerAction="All" SelectOnFocus="true" DisplayField="industry_name"
                            ValueField="ID" EmptyText="请选择" FieldLabel="行业门类<font color='red'>*</font>" AnchorHorizontal="92%">
                            <DirectEvents>
                                <Select OnEvent="industryReload">
                                </Select>
                            </DirectEvents>
                            <Store>
                                <ext:Store runat="server" ID="storeIndustryTop">
                                    <Reader>
                                        <ext:JsonReader>
                                            <Fields>
                                                <ext:RecordField Name="ID" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="industry_no" Type="String">
                                                </ext:RecordField>
                                                <ext:RecordField Name="industry_name" Type="String">
                                                </ext:RecordField>
                                            </Fields>
                                        </ext:JsonReader>
                                    </Reader>
                                </ext:Store>
                            </Store>
                        </ext:ComboBox>
                    </Items>
                </ext:Panel>
                <ext:Panel Border="false" Header="false" runat="server" Padding="8" BoxMaxHeight="75"
                    Layout="Form" ColumnWidth=".33">
                    <Defaults>
                        <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
                        <ext:Parameter Name="MsgTarget" Value="side" />
                    </Defaults>
                    <Items>
                        <ext:TextField runat="server" ID="tfTaxesName" AnchorHorizontal="92%" MaxLengthText="输入太长了"
                            MaxLength="20" AllowBlank="false" FieldLabel="纳税人名称<font color='red'>*</font>">
                        </ext:TextField>
                        <ext:ComboBox runat="server" ID="cbIndustry" Editable="false" TypeAhead="true" Mode="Local"
                            ForceSelection="true" TriggerAction="All" SelectOnFocus="true" DisplayField="industry_name"
                            ValueField="ID" EmptyText="请选择" FieldLabel="行业大类<font color='red'>*</font>" AnchorHorizontal="92%">
                            <Store>
                                <ext:Store runat="server" ID="streoIndustry" AutoLoad="false">
                                    <DirectEventConfig>
                                        <EventMask ShowMask="false" />
                                    </DirectEventConfig>
                                    <Reader>
                                        <ext:JsonReader IDProperty="Id">
                                            <Fields>
                                                <ext:RecordField Name="ID" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="industry_no" Type="String">
                                                </ext:RecordField>
                                                <ext:RecordField Name="industry_name" Type="String">
                                                </ext:RecordField>
                                            </Fields>
                                        </ext:JsonReader>
                                    </Reader>
                                    <Listeners>
                                        <Load Handler="#{cbIndustry}.setValue(#{cbIndustry}.store.getAt(0).get('ID'));" />
                                    </Listeners>
                                </ext:Store>
                            </Store>
                        </ext:ComboBox>
                    </Items>
                </ext:Panel>
                <ext:Panel Border="false" Header="false" runat="server" Padding="8" BoxMaxHeight="75"
                    Layout="Form" ColumnWidth=".33">
                    <Defaults>
                        <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
                        <ext:Parameter Name="MsgTarget" Value="side" />
                    </Defaults>
                    <Items>
                        <ext:TextField runat="server" ID="tfAddress" AnchorHorizontal="92%" MaxLengthText="输入太长了"
                            MaxLength="25" AllowBlank="false" FieldLabel="经营地址<font color='red'>*</font>">
                        </ext:TextField>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:FormPanel>
        <ext:FormPanel ID="FormPanel3" runat="server" Header="true" AutoHeight="true" AutoWidth="true"
            Title="经纬度信息" AnchorHorizontal="100%" AnchorVertical="100%" Layout="FormLayout"
            ButtonAlign="Center">
            <Items>
                <ext:FormPanel runat="server" Header="true" AutoHeight="true" AutoWidth="true" Border="false"
                    AnchorHorizontal="100%" AnchorVertical="100%" Layout="ColumnLayout">
                    <Items>
                        <ext:Panel runat="server" ColumnWidth="0.5" ID="ctl1172" Border="false" Height="200">
                            <Items>
                                <ext:Image ID="imageShow" runat="server" FieldLabel="照片预览" Width="400" Height="500"
                                    Hidden="true">
                                </ext:Image>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ColumnWidth="0.5" runat="server" ID="ctl1175" Border="false">
                            <Items>
                                <ext:FileUploadField ID="FileUploadField1" runat="server" ButtonOnly="true" ButtonText="选择"
                                    Icon="ImageAdd" Hidden="true">
                                    <DirectEvents>
                                        <FileSelected OnEvent="GetImage">
                                        </FileSelected>
                                    </DirectEvents>
                                </ext:FileUploadField>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:FormPanel>
                <ext:FormPanel ID="formResult" runat="server" Header="true" AutoHeight="true" AutoWidth="true"
                    Border="false" AnchorHorizontal="100%" AnchorVertical="100%" Layout="ColumnLayout">
                    <Items>
                        <ext:Panel runat="server" Border="false" ColumnWidth="0.33" Padding="6">
                            <Items>
                                <ext:Label runat="server" ID="lblLon" Hidden="true" FieldLabel="经度">
                                </ext:Label>
                                <ext:Label runat="server" ID="lblUnitRegionCost" Hidden="true" FieldLabel="所属地段平均单位面积租金/户数">
                                </ext:Label>
                                <ext:Label runat="server" ID="lblInudstryUnitRegionTaxes" Hidden="true" FieldLabel="所属行业平均单位面积租金税收负担率">
                                </ext:Label>
                            </Items>
                        </ext:Panel>
                        <ext:Panel runat="server" Border="false" ColumnWidth="0.33" Padding="6">
                            <Items>
                                <ext:Label runat="server" ID="lblLat" Hidden="true" FieldLabel="纬度">
                                </ext:Label>
                                <ext:Label runat="server" ID="lblUnitRegionTaxesPrecent" Hidden="true" FieldLabel="所属地段平均单位面积租金税收负担率">
                                </ext:Label>
                                <ext:Label runat="server" ID="lblSystemUnitCost" Hidden="true" FieldLabel="系统设定单位面积租金">
                                </ext:Label>
                            </Items>
                        </ext:Panel>
                        <ext:Panel runat="server" Border="false" ColumnWidth="0.33" Padding="6">
                            <Items>
                                <ext:Label runat="server" ID="lblRegion" Hidden="true" FieldLabel="所属地段">
                                </ext:Label>
                                <ext:Label runat="server" ID="lblIndustryUnitCost" Hidden="true" FieldLabel="所属行业平均单位面积租金/户数">
                                </ext:Label>
                                <ext:TextField runat="server" ID="tfCost" Hidden="true" FieldLabel="实际调查租金">
                                </ext:TextField>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:FormPanel>
                <ext:Panel runat="server" Title="楼层信息" Padding="6">
                    <Items>
                        <ext:GridPanel runat="server" ID="floor" AutoHeight="true">
                            <Store>
                                <ext:Store ID="storeFloor" runat="server">
                                    <Reader>
                                        <ext:JsonReader>
                                            <Fields>
                                                <ext:RecordField Name="ID" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="revenue_id" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_num" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_use" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_original" Type="Float">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_area" Type="Float">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_elevator" Type="Int">
                                                </ext:RecordField>
                                                <ext:RecordField Name="floor_carea" Type="Float">
                                                </ext:RecordField>
                                                <ext:RecordField Name="uriFloorImage" Type="String">
                                                </ext:RecordField>
                                            </Fields>
                                        </ext:JsonReader>
                                    </Reader>
                                    <Listeners>
                                        <Add Fn="addFloorEvent" />
                                    </Listeners>
                                </ext:Store>
                            </Store>
                            <ColumnModel runat="server">
                                <Columns>
                                    <ext:Column Header="楼层" DataIndex="floor_num">
                                        <Renderer Fn="renderFloor" />
                                    </ext:Column>
                                    <ext:Column Header="自用\租用" DataIndex="floor_use">
                                        <Renderer Fn="renderType" />
                                    </ext:Column>
                                    <ext:Column Header="房产原值" DataIndex="floor_original">
                                    </ext:Column>
                                    <ext:Column Header="营业面积" DataIndex="floor_area">
                                        <Renderer Fn="renderSize" />
                                    </ext:Column>
                                    <ext:CheckColumn Header="是否包含楼梯" DataIndex="floor_elevator">
                                    </ext:CheckColumn>
                                    <ext:Column Header="折算面积" DataIndex="floor_carea">
                                        <Renderer Fn="renderSize" />
                                    </ext:Column>
                                    <ext:Column DataIndex="uriFloorImage" Hidden="true">
                                    </ext:Column>
                                    <ext:CommandColumn>
                                        <Commands>
                                            <ext:GridCommand CommandName="delete" Icon="Delete" Text="删除" ToolTip-Text="删除">
                                                <ToolTip Text="删除" />
                                            </ext:GridCommand>
                                        </Commands>
                                    </ext:CommandColumn>
                                </Columns>
                            </ColumnModel>
                            <Listeners>
                                <Command Fn="floor_command" />
                            </Listeners>
                            <Buttons>
                                <ext:Button runat="server" ID="btnFloorAdd" Text="添加楼层">
                                    <Listeners>
                                        <Click Handler="window1.show();" />
                                    </Listeners>
                                </ext:Button>
                            </Buttons>
                        </ext:GridPanel>
                        <ext:Label runat="server" ID="lblTotalMianJi" FieldLabel="总面积">
                        </ext:Label>
                        <ext:Hidden runat="server" ID="hidTotalMianJi">
                        </ext:Hidden>
                        <ext:TextField ID="tfZhanDiMianji" runat="server" FieldLabel="占地面积">
                        </ext:TextField>
                    </Items>
                </ext:Panel>
                <ext:FormPanel ID="FormPanel1" runat="server" Header="true" AutoHeight="true" Title="土地证土地面积照片或实景照片"
                    AutoWidth="true" Border="false" AnchorHorizontal="100%" AnchorVertical="100%"
                    Layout="ColumnLayout">
                    <Items>
                        <ext:Panel runat="server" ColumnWidth="0.5" ID="Panel1" Border="false" Height="200">
                            <Items>
                                <ext:Image ID="picImage" runat="server" FieldLabel="照片预览" Width="400" Height="500"
                                    Hidden="true">
                                </ext:Image>
                                <ext:Hidden runat="server" ID="hidePic">
                                </ext:Hidden>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ColumnWidth="0.5" runat="server" ID="Panel2" Border="false">
                            <Items>
                                <ext:FileUploadField ID="fileUploadPic" runat="server" ButtonOnly="true" ButtonText="选择照片"
                                    Icon="ImageAdd">
                                    <DirectEvents>
                                        <FileSelected OnEvent="ShowImage">
                                        </FileSelected>
                                    </DirectEvents>
                                </ext:FileUploadField>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button runat="server" ID="btnSubmit" Text="保存信息" Hidden="true">
                    <Listeners>
                        <Click Fn="btnSubmitClick" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:FormPanel>
        <ext:Hidden ID="hidValue" runat="server">
        </ext:Hidden>
        <ext:Store ID="storeFiles" runat="server" ShowWarningOnFailure="false">
            <Reader>
                <ext:JsonReader IDProperty="ID">
                    <Fields>
                        <ext:RecordField Name="ID" />
                        <ext:RecordField Name="MailId" />
                        <ext:RecordField Name="FilePath" />
                        <ext:RecordField Name="FileName" />
                        <ext:RecordField Name="FileSize" Type="Int" />
                        <ext:RecordField Name="FileExtension" />
                        <ext:RecordField Name="FileCreationDate" Type="Date" />
                        <ext:RecordField Name="FileModificationDate" Type="Date" />
                        <ext:RecordField Name="FileCreator" />
                        <ext:RecordField Name="FileId" />
                        <ext:RecordField Name="FileIndex" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
            <Listeners>
                <%--移除记录时引发storeFilesRemoveEvent事件--%>
                <Remove Fn="storeFilesRemoveEvent2" />
                <%--添加记录时引发storeFilesAddEvent事件--%>
                <Add Fn="storeFilesAddEvent" />
            </Listeners>
        </ext:Store>
        <ext:Hidden runat="server" ID="hiddenRegionID">
        </ext:Hidden>
        <ext:Hidden runat="server" ID="hiddenLon">
        </ext:Hidden>
        <ext:Hidden runat="server" ID="hiddenLat">
        </ext:Hidden>
        <ext:Window ID="windowAddPic" runat="server" AutoHeight="true" Hidden="true" Width="800"
            Modal="true">
            <Items>
                <ext:GridPanel runat="server" ID="gpFiles" StoreID="storeFiles" Title="导入文件" Frame="true"
                    Layout="FormLayout" StripeRows="true" AutoExpandColumn="FileName" AutoWidth="true"
                    Height="270" AnchorHorizontal="100%" Padding="10">
                    <TopBar>
                        <ext:Toolbar runat="server">
                            <Items>
                                <ext:Button runat="server" Text="保存" Icon="ApplicationAdd">
                                    <Listeners>
                                        <Click Fn="addFloorPic" />
                                    </Listeners>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <ColumnModel>
                        <Columns>
                            <ext:Column ColumnID="FileName" DataIndex="FileName" Header="名称">
                            </ext:Column>
                            <ext:Column ColumnID="FilePath" DataIndex="FilePath" Header="FilePath" Hidden="true">
                            </ext:Column>
                            <ext:Column ColumnID="FileSize" DataIndex="FileSize" Header="大小">
                                <Renderer Fn="renderSize" />
                            </ext:Column>
                            <ext:Column ColumnID="FileExtension" DataIndex="FileExtension" Header="类型">
                            </ext:Column>
                            <ext:Column ColumnID="FileCreationDate" DataIndex="FileCreationDate" Header="创建日期"
                                Hidden="true">
                            </ext:Column>
                            <ext:Column ColumnID="FileModificationDate" DataIndex="FileModificationDate" Header="FileModificationDate"
                                Hidden="true">
                            </ext:Column>
                            <ext:Column ColumnID="FileCreator" DataIndex="FileCreator" Header="FileCreator" Hidden="true">
                            </ext:Column>
                            <ext:CommandColumn Width="24" Resizable="false">
                                <Commands>
                                    <%--每行后面添加一个删除按钮，用来删除已上传的文件--%>
                                    <ext:GridCommand Icon="Delete" CommandName="delete" ToolTip-Text="删除">
                                        <ToolTip Text="删除"></ToolTip>
                                    </ext:GridCommand>
                                </Commands>
                            </ext:CommandColumn>
                        </Columns>
                    </ColumnModel>
                    <Store>
                    </Store>
                    <SelectionModel>
                        <ext:RowSelectionModel />
                    </SelectionModel>
                    <Listeners>
                        <%--点击每行后面的删除按钮时引发gpFlilesDelete--%>
                        <Command Fn="gpFlilesDelete" />
                    </Listeners>
                    <Buttons>
                        <%--swfupload库通过这个按钮ID来找到并替换此区域,此ID比较关键，后面的样式是为了做一些美观处理，可去掉看看效果--%>
                        <ext:Button runat="server" ID="btnUploadFile" StyleSpec="visibility:hidden;height:25;width:75">
                        </ext:Button>
                        <ext:Button runat="server" ID="btnCancelFileUpload" Text="取消" Hidden="true">
                            <Listeners>
                                <Click Fn="CancelFileUpload" />
                            </Listeners>
                        </ext:Button>
                    </Buttons>
                    <BottomBar>
                        <ext:StatusBar ID="StatusBar1" runat="server">
                            <Content>
                                <ext:ProgressBar ID="pbar" runat="server" Hidden="true">
                                </ext:ProgressBar>
                            </Content>
                        </ext:StatusBar>
                    </BottomBar>
                    <Buttons>
                    </Buttons>
                </ext:GridPanel>
            </Items>
        </ext:Window>
        <ext:Window ID="window1" runat="server" AutoHeight="true" Width="960" Modal="true"
            Hidden="true">
            <Items>
                <ext:Panel runat="server" Border="false" Padding="6" Width="950">
                    <Items>
                        <ext:NumberField runat="server" ID="tfFloorNum" FieldLabel="楼层">
                        </ext:NumberField>
                        <ext:RadioGroup runat="server" FieldLabel="自用/租用">
                            <Items>
                                <ext:Radio runat="server" ID="radioOwer" FieldLabel="自用" Checked="false">
                                    <Listeners>
                                        <Check Handler="tfOriginal.show();" />
                                    </Listeners>
                                </ext:Radio>
                                <ext:Radio runat="server" ID="radioZuyong" FieldLabel="租用">
                                    <Listeners>
                                        <Check Handler="tfOriginal.hide();" />
                                    </Listeners>
                                </ext:Radio>
                            </Items>
                        </ext:RadioGroup>
                        <ext:TextField runat="server" ID="tfOriginal" FieldLabel="房产原值" Hidden="true">
                        </ext:TextField>
                        <ext:TextField runat="server" ID="tfArea" FieldLabel="营业面积(平方米)">
                        </ext:TextField>
                        <ext:Checkbox runat="server" ID="ckLift" FieldLabel="是否有电梯">
                        </ext:Checkbox>
                        <ext:Button runat="server" ID="btnAddFloorPic" Text="添加图片">
                            <Listeners>
                                <Click Handler="windowAddPic.show();storeFiles.removeAll();" />
                            </Listeners>
                        </ext:Button>
                        <ext:Hidden ID="imageUrlHidden" runat="server">
                        </ext:Hidden>
                        <ext:DataView ID="ImageView" runat="server" ItemSelector="div.thumb-wrap" StyleSpec="overflow:auto"
                            MultiSelect="true">
                            <Template runat="server">
                                <Html>
                                    <tpl for=".">
												<div class="thumb-wrap" id="{FileName}">
													<div class="thumb">
														<img src="{FilePath}" style="width:100px; height:80px; float:left;" class="thumb-img">
													</div>
												</div>
											</tpl>
                                </Html>
                            </Template>
                            <Store>
                                <ext:Store runat="server" ID="storeFloor_pic">
                                    <Reader>
                                        <ext:JsonReader IDProperty="name">
                                            <Fields>
                                                <ext:RecordField Name="FileName" />
                                                <ext:RecordField Name="FilePath" />
                                            </Fields>
                                        </ext:JsonReader>
                                    </Reader>
                                </ext:Store>
                            </Store>
                        </ext:DataView>
                    </Items>
                    <Buttons>
                        <ext:Button ID="btnSave" Text="保存" runat="server">
                            <Listeners>
                                <Click Fn="floorBtnClick" />
                            </Listeners>
                            <DirectEvents>
                                <Click OnEvent="FloorBtnClick">
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:Button ID="btnFloorCancel" Text="取消" runat="server">
                            <Listeners>
                            </Listeners>
                            <DirectEvents>
                                <Click OnEvent="BtnFloorCancelClick" />
                            </DirectEvents>
                        </ext:Button>
                    </Buttons>
                </ext:Panel>
            </Items>
        </ext:Window>
    </div>
    </form>
</body>
</html>
